package liumengbaio.lolzhangyoubao.Activity.Activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import liumengbaio.lolzhangyoubao.R;

/**
 * 专辑介绍 界面
 * Created by lanouhn on 16/9/6.
 */
public class MoreNovelHeadActivity extends AppCompatActivity {

    private TextView content, title;
    private ImageView back;


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.more_novel_head);
        initView();
        initData();
        initEvent();
    }

    private void initView() {
        content = (TextView) findViewById(R.id.more_novel_head);
        title = (TextView) findViewById(R.id.video_title);
        back = (ImageView) findViewById(R.id.video_activity_back);
    }

    private void initData() {
        title.setText("专辑介绍");
        Intent intent = getIntent();
        String data = intent.getStringExtra("desc");
        content.setText(data);
    }

    private void initEvent() {
        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
}
